package com.ddwl.schema.bo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Author hemiaojun
 * @Date 2021/2/22 14:01
 */
@Getter
@Setter
@ApiModel("微信绑定手机号注册入参")
public class WxMobileRegisterBo {

    @ApiModelProperty(value = "微信OpenId")
    private String wxOpenId;

    @ApiModelProperty(value = "应用id")
    private String appId;

    @ApiModelProperty(value = "通用ID")
    private String unionId;

    @ApiModelProperty(value = "邀请码")
    private String inviteCode;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("昵称名字")
    private String nickname;

    @ApiModelProperty("性别")
    private Byte sex;

    @ApiModelProperty("生日")
    private String birthday;

    @ApiModelProperty(value = "设备唯一码",hidden = true)
    private String  dk;
    @ApiModelProperty(value = "产品",hidden = true)
    private String  product;
    @ApiModelProperty(value = "城市")
    private String city;
    @ApiModelProperty(value = "省份")
    private String province;
    @ApiModelProperty(value = "国家")
    private String country;
    @ApiModelProperty("区域id")
    private String regionId;
    @ApiModelProperty(value = "邀请人id")
    private String inviteId;
    @ApiModelProperty("渠道")
    private String channel;

    @ApiModelProperty("微信加密数据")
    private String encryptedData;
    @ApiModelProperty("解密密钥")
    private String iv;

    @NotNull(message = "微信手机号加密数据不能为空")
    @ApiModelProperty("微信手机号加密数据")
    private String phoneEncryptedData;
    @NotNull(message = "手机号解密密钥不能为空")
    @ApiModelProperty("手机号解密密钥")
    private String phoneIv;
    @NotNull(message = "会话密钥不能为空")
    @ApiModelProperty("会话密钥")
    private String sessionKey;

    @ApiModelProperty("分享人id")
    private String shareUserId;
}
